package nc.ui.mmpac.sumpickm.handler.body;

import nc.ui.mmf.framework.handler.MMBaseHandler;
import nc.ui.mmf.framework.handler.MMEventHandler;
import nc.ui.pubapp.uif2app.event.IAppEventHandler;
import nc.ui.pubapp.uif2app.event.card.CardBodyAfterEditEvent;
import nc.util.mmf.framework.base.MMValueCheck;
import nc.vo.mmpac.sumpickm.entity.SumPickmBodyVO;

public class SumPickmCardBodyItemAfterEditHandler extends MMEventHandler implements
        IAppEventHandler<CardBodyAfterEditEvent> {

    @Override
    public void handleAppEvent(CardBodyAfterEditEvent e) {
    	   MMBaseHandler handler = this.getHandler(e.getKey());
           if (!MMValueCheck.isEmpty(handler)) {
               handler.afterEdit(e);
           }
    }

    @Override
    public void initMap() {
        this.putHandler(SumPickmBodyVO.CDELIVERORGVID,SumPickmCardBodyItemCdeliverorgvidHandler.class ); 
      	 this.putHandler(SumPickmBodyVO.CDELIVERORGID,SumPickmCardBodyItemCdeliverorgvidHandler.class );  
      	 this.putHandler(SumPickmBodyVO.COUTSTOCKID,SumPickmCardBodyItemCoutstockidHandler.class );    	 
      	 this.putHandler(SumPickmBodyVO.VBATCHCODE,SumPickmCardBodyItemVbatchcodeHandler.class );
    }

}
